/* 图标样式 */
.icon-user:before { content: "👤"; }
.icon-department:before { content: "🏢"; }
.icon-salary:before { content: "💰"; }
.icon-payment:before { content: "💳"; }
.icon-add:before { content: "+"; }
.icon-search:before { content: "🔍"; }
.icon-edit:before { content: "✏️"; }
.icon-delete:before { content: "🗑️"; }
.icon-back:before { content: "←"; }
.icon-tree:before { content: "🌳"; }
.icon-filter:before { content: "⚙️"; }
.icon-pay:before { content: "💸"; }
.icon-male:before { content: "👨"; }
.icon-female:before { content: "👩"; }
.icon-save:before { content: "💾"; }

/* 内容头部 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-title {
    font-size: 24px;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-back {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.btn-back:hover {
    background-color: #bdc3c7;
}

.btn-search {
    background-color: #2ecc71;
    color: white;
}

.btn-search:hover {
    background-color: #27ae60;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th {
    background-color: #f8f9fa;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #34495e;
    border-bottom: 2px solid #e1e1e1;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover td {
    background-color: #f8f9fa;
}

/* 员工信息样式 */
.employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.details {
    display: flex;
    flex-direction: column;
}

.details .contact {
    font-size: 12px;
    color: #7f8c8d;
}

/* 操作按钮 */
.actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit {
    background-color: #3498db;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-salary {
    background-color: #2ecc71;
}

.btn-salary:hover {
    background-color: #27ae60;
}

.btn-pay {
    background-color: #9b59b6;
}

.btn-pay:hover {
    background-color: #8e44ad;
}

/* 状态标签 */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.paid {
    background-color: #cce5ff;
    color: #004085;
}

/* 表单样式 */
.employee-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.employee-form .form-group {
    flex: 1;
}

.employee-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.employee-form input,
.employee-form select,
.employee-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.employee-form input:focus,
.employee-form select:focus,
.employee-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.required {
    color: #e74c3c;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #95a5a6;
    border-radius: 50%;
    position: relative;
}

input[type="radio"]:checked + .radio-custom::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 部门树样式 */
.department-tree h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tree {
    list-style-type: none;
    padding-left: 0;
}

.tree ul {
    list-style-type: none;
    padding-left: 30px;
}

.tree li {
    margin: 15px 0;
    position: relative;
}

.tree li::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -20px;
    width: 1px;
    height: calc(100% + 20px);
    background-color: #bdc3c7;
}

.tree li::after {
    content: "";
    position: absolute;
    top: 15px;
    left: -20px;
    width: 20px;
    height: 1px;
    background-color: #bdc3c7;
}

.tree > li:first-child::before {
    top: 15px;
    height: calc(100% - 15px);
}

.tree > li:last-child::before {
    height: 25px;
}

.tree-node {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-label {
    font-weight: 600;
    color: #2c3e50;
}

.node-info {
    background-color: #e1f0fa;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 筛选器样式 */
.filters {
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    flex-direction: column;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #34495e;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 汇总信息 */
.summary {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.summary-item span {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.summary-item strong {
    font-size: 18px;
    color: #2c3e50;
}